EmojiCompletion: Avoid un/signed compare warnings
authorDaniel Boles <dboles.src@gmail.com>
Wed, 20 Jun 2018 19:36:19 +0000 (20:36 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Wed, 20 Jun 2018 19:36:19 +0000 (20:36 +0100)
(A) Use gsize to match the result of g_variant_n_children
(B) Use guint for n_matches, like the struct (and all other n_matches)

gtk/gtkemojicompletion.c

index 331809bc91fa5ba8276abe93ac7626f634a7964b..434047fdaf9780b5f10a89de6827979c2e9ee653 100644 (file)
@@ -431,7 +431,7 @@ static gboolean
 has_variations (GVariant *emoji_data)
 {
   GVariant *codes;
-  int i;
+  gsize i;
   gboolean has_variations;
 
   has_variations = FALSE;
@@ -587,8 +587,8 @@ populate_completion (GtkEmojiCompletion *completion,
                      guint                offset)
 {
   GList *children, *l;
-  int n_matches;
-  int n_added;
+  guint n_matches;
+  guint n_added;
   GVariantIter iter;
   GVariant *item;